﻿using System.Web.UI.WebControls;

namespace ApplicationGenerator.Forms.WebControls
{
    /// <summary>
    /// Kontrolka dla elementu relacyjnego
    /// </summary>
    public class RelationWebControl : WebControl
    {
        #region Properties
        /// <summary>
        /// Kontrolka przycisku
        /// </summary>
        public Button Button
        {
            get;
            private set;
        }

        /// <summary>
        /// Ukryte pole do przechowywania id zaznaczonego elementu
        /// </summary>
        public HiddenField HiddenField
        {
            get;
            private set;
        }
        #endregion

        #region Constructor
        /// <summary>
        /// Domyślny konstruktor
        /// </summary>
        public RelationWebControl()
        {
            Button = new Button();
            HiddenField = new HiddenField();
            this.Controls.Add(Button);
            this.Controls.Add(HiddenField);
        }
        #endregion
    }
}
